package cn.maxwell.fallback;

import cn.maxwell.User;
import org.springframework.web.bind.annotation.PathVariable;

public class OrderUserFallback {
    public static User fallbackUser(@PathVariable("id") Long id, Throwable th){
        th.printStackTrace();
        User user = new User(-1, "我已经被熔断了", "你丫别点了！我来不起了！！！");
        return user;
    }
}
